package com.ginger.model;

import java.util.Date;

public class User {
	private Long userId;
	private String userCode;
	private String userName;
	private String realName;
	private String password;
	private Integer userTypeId;
	private String userMobile;
	private String userMail;
	private Boolean userGender;
	private Boolean locked;
	private Boolean disabled;
	private Integer attemptsintCount;
	private Integer createrId;
	private Date createTime;
	private Integer editorId;
	private Date lastEdit;
	private Date lastLoginTime;

	public User() {
	}
	/**
	 * 
	 * @param user
	 */
	public User(User user) {
		this.userId = user.getUserId();
		this.userCode = user.getUserCode();
		this.userName = user.getUserName();
		this.password = user.getPassword();
		this.userTypeId = user.getUserTypeId();
		this.userMobile = user.getUserMobile();
		this.userMail = user.getUserMail();
		this.userGender = user.getUserGender();
		this.locked = user.getLocked();
		this.disabled = user.getDisabled();
		this.attemptsintCount = user.getAttemptsintCount();
		this.lastLoginTime = user.getLastLoginTime();
	}
	
	
	public User(Long userId, String userCode, String userName, String realName, String password) {
		super();
		this.userId = userId;
		this.userCode = userCode;
		this.userName = userName;
		this.realName = realName;
		this.password = password;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getUserTypeId() {
		return userTypeId;
	}
	public void setUserTypeId(Integer userTypeId) {
		this.userTypeId = userTypeId;
	}
	public String getUserMobile() {
		return userMobile;
	}
	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}
	public String getUserMail() {
		return userMail;
	}
	public void setUserMail(String userMail) {
		this.userMail = userMail;
	}
	public Boolean getUserGender() {
		return userGender;
	}
	public void setUserGender(Boolean userGender) {
		this.userGender = userGender;
	}
	public Boolean getLocked() {
		return locked;
	}
	public void setLocked(Boolean locked) {
		this.locked = locked;
	}
	public Boolean getDisabled() {
		return disabled;
	}
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}
	public Integer getAttemptsintCount() {
		return attemptsintCount;
	}
	public void setAttemptsintCount(Integer attemptsintCount) {
		this.attemptsintCount = attemptsintCount;
	}
	public Integer getCreaterId() {
		return createrId;
	}
	public void setCreaterId(Integer createrId) {
		this.createrId = createrId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getEditorId() {
		return editorId;
	}
	public void setEditorId(Integer editorId) {
		this.editorId = editorId;
	}
	public Date getLastEdit() {
		return lastEdit;
	}
	public void setLastEdit(Date lastEdit) {
		this.lastEdit = lastEdit;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	
}
